﻿/**  版本信息模板在安装目录下，可自行修改。
* ARS_Entity_ControlField_Attr.cs
*
* 功 能： N/A
* 类 名： ARS_Entity_ControlField_Attr
*
* Ver    变更日期             负责人  变更内容
* ───────────────────────────────────
* V0.01  2014/6/13 16:54:06   N/A    初版
*
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
*┌──────────────────────────────────┐
*│　此技术信息为本公司机密信息，未经本公司书面同意禁止向第三方披露．　│
*│　版权所有：动软卓越（北京）科技有限公司　　　　　　　　　　　　　　│
*└──────────────────────────────────┘
*/
using System;
using ARS.Control.Custom.Entity.Fields;

namespace ARS.Control.Custom.Entity.Model
{
	/// <summary>
	/// ARS_Entity_ControlField_Attr:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
    public partial class ARS_Entity_ControlField_Attr : BaseModel
	{
		public ARS_Entity_ControlField_Attr()
		{}
		#region Model
		private int _ars_entity_controlfield_attr_id;
		private string _defaultvalue;
		private bool _isunique;
		private string _uniquewhere;
		private bool _isallowadd;
		private bool _isallowupdate;
		private bool _isallowblank;
		private bool _visible;
		private bool _isshow;
		private string _remark;
		private int? _ars_control_controls_id;
		/// <summary>
		/// 
		/// </summary>
		[KeyField()]
        public int ARS_Entity_ControlField_Attr_Id
		{
			set{ _ars_entity_controlfield_attr_id=value;}
			get{return _ars_entity_controlfield_attr_id;}
		}
		/// <summary>
		/// 
		/// </summary>
		[CharField(Verbose_Name="默认值")]
        public string DefaultValue
		{
			set{ _defaultvalue=value;}
			get{return _defaultvalue;}
		}
		/// <summary>
		/// 
		/// </summary>
		[BooleanField(Verbose_Name="是否唯一",SelectValue="1",UnSelectValue="0")]
        public bool IsUnique
		{
			set{ _isunique=value;}
			get{return _isunique;}
		}
		/// <summary>
		/// 
		/// </summary>
		[CharField(Verbose_Name="唯一条件")]
        public string UniqueWhere
		{
			set{ _uniquewhere=value;}
			get{return _uniquewhere;}
		}
		/// <summary>
		/// 
		/// </summary>
        [BooleanField(Verbose_Name = "是否允许添加", SelectValue = "1", UnSelectValue = "0")]
        public bool IsAllowAdd
		{
			set{ _isallowadd=value;}
			get{return _isallowadd;}
		}
		/// <summary>
		/// 
		/// </summary>
        [BooleanField(Verbose_Name = "是否允许修改", SelectValue = "1", UnSelectValue = "0")]
        public bool IsAllowUpdate
		{
			set{ _isallowupdate=value;}
			get{return _isallowupdate;}
		}
		/// <summary>
		/// 
		/// </summary>
        [BooleanField(Verbose_Name = "是否允许为空", SelectValue = "1", UnSelectValue = "0")]
        public bool IsAllowBlank
		{
			set{ _isallowblank=value;}
			get{return _isallowblank;}
		}

		/// <summary>
		/// 
		/// </summary>
        [BooleanField(Verbose_Name = "是否显示控件", SelectValue = "1", UnSelectValue = "0")]
        public bool Visible
		{
			set{ _visible=value;}
			get{return _visible;}
		}
		/// <summary>
		/// 
		/// </summary>
        [BooleanField(Verbose_Name = "是否显示字段", SelectValue = "1", UnSelectValue = "0")]
        public bool IsShow
		{
			set{ _isshow=value;}
			get{return _isshow;}
		}
		/// <summary>
		/// 
		/// </summary>
		[CharField(Verbose_Name="备注")]
        public string Remark
		{
			set{ _remark=value;}
			get{return _remark;}
		}
		/// <summary>
		/// 
		/// </summary>
        [ForeignKeyConfig(TableName = "ARS_Control_Controls", DataTextField = "Name", KeyField = "ARS_Control_Controls_Id")]
        [ForeignKeyField(Verbose_Name="所属控件")]
        public int? ARS_Control_Controls_Id
		{
			set{ _ars_control_controls_id=value;}
			get{return _ars_control_controls_id;}
		}
		#endregion Model


       

        private string _verbose_name;
        private string _help_text;
        private string _db_field_name;
        private string _html_control_name;
        private int? _ars_entity_table_id;
        private string _regexstr;
        private string _tip;

        /// <summary>
        /// 
        /// </summary>
        [CharField(Verbose_Name = "显示名称")]
        public string Verbose_Name
        {
            set { _verbose_name = value; }
            get { return _verbose_name; }
        }
        /// <summary>
        /// 
        /// </summary>
        [CharField(Verbose_Name = "帮助")]
        public string Help_Text
        {
            set { _help_text = value; }
            get { return _help_text; }
        }
        /// <summary>
        /// 
        /// </summary>
        [CharField(Verbose_Name = "数据库字段")]
        public string Db_Field_Name
        {
            set { _db_field_name = value; }
            get { return _db_field_name; }
        }
        /// <summary>
        /// 
        /// </summary>
        [CharField(Verbose_Name = "html控件name")]
        public string Html_Control_Name
        {
            set { _html_control_name = value; }
            get { return _html_control_name; }
        }

        /// <summary>
        /// 
        /// </summary>
        [CharField(Verbose_Name = "正则表达式")]
        public string RegexStr
        {
            set { _regexstr = value; }
            get { return _regexstr; }
        }
        /// <summary>
        /// 
        /// </summary>
        [CharField(Verbose_Name = "提示")]
        public string Tip
        {
            set { _tip = value; }
            get { return _tip; }
        }
        [BooleanField(Verbose_Name = "是否保存到数据库")]
        public bool IsSaveDb
        {
            get;
            set;
        }


	}
}

